﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace THenu.TinyHourseLib.DesignPattern.Builder_Pattern
{
    /// <summary>
    /// 抽象的建造者基类(维护建造过程)
    /// </summary>
    public class ActionBuilder
    {
        protected List<ActionUnit> ActionList = new List<ActionUnit>();


        /// <summary>
        /// 执行指令序列
        /// </summary>
        public virtual void ExecuteActionList()
        {
            foreach (var item in ActionList)
            {
                Console.WriteLine("Action->\t" + item.Description);
            }
        }
    }
}
